﻿using System;
using System.Collections;
using System.Web;
using System.Web.UI;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Criterion;
using gms.data;

namespace gms.page {
	public partial class nhibernate_test : Page {
		public Opcode output = null;

		public nhibernate_test() {
			this.Load += new EventHandler(nhibernate_test_Load);
		}

		void nhibernate_test_Load(object sender, EventArgs e) {
			Configuration cfg = new Configuration();
			cfg.AddAssembly("Game Management Library");
			ISessionFactory factory = cfg.BuildSessionFactory();
			ISession session = factory.OpenSession();

			output = session.Get<Opcode>(1);
		}
	}
}